﻿@model IEnumerable<Gfw.Web.Models.Site.AnnouncementModel>
@{
    ViewBag.Title = "最新公告";
    Layout = "~/Views/Shared/_Content.cshtml";
        //ViewBag.Style = "width:700px;float:right";
}
@using C.Mvc
@using MvcContrib.UI.Grid;

<div style="text-align:right">
    @Html.ActionLink("更多>>", "Index", "Announcement")
</div>
@Html.Grid(Model).Columns(
            column =>
            {
                column.For(x => Html.ActionLink(x.AnnouncementTitle, "Detail", new { id = x.ID, isDefault = true })).Named("标题");
                column.For(x => x.AnnouncementDate).Named("发布时间");
                //column.For(x => x.AnnouncementPublisher).Named("发布人");
            }
    ).Attributes(id => "mytable", cellpadding => "0", cellspacing => "0").Empty("没有相关信息")
